@color-gray: #bebebe;
@color-deep-gray: #999898;
@color-purple: #6d527e;
@color-blue: #4169e2;
@color-light-blue: #e1ecfd;
@color-red: #e0110d;
@color-bgc: #fff;

@fontSize-h1: 22px;
@fontSize-h2: 20px;
@fontSize-h3: 18px;
@fontSize-h4: 16px;
@fontSize-norm: 16px;
@border-size: 2px;

.clearfix::before,
.clearfix::after {
  content: '';
  clear: both;
  display: table;
}

.topbar {
  height: 6vh;
  border: solid @border-size @color-gray;
  padding: 0 50px;
}

.btn {
  width: 30px;
  height: 30px;
  font-size: @fontSize-h2;
  text-align: center;
  line-height: 30px;
  position: relative;

  &.btn-gray {
    color: @color-blue;
    background-color: @color-light-blue;
  }

  &.btn-long {
    width: 90px;
    height: 40px;
    line-height: 40px;
    border-radius: 15px;
  }

  &.active {
    background-color: @color-blue;
    color: @color-bgc;
  }

  &.btn-circle {
    border-radius: 50%;
  }

  .red-point {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    line-height: 20px;
    font-size: @fontSize-h4;
    color: @color-bgc;
    background-color: @color-red;
  }
}

body,
html {
  width: 100%;
  height: 100%;
  font-size: @fontSize-norm;
  margin: 0;
  padding: 0;
  & * {
    box-sizing: border-box;
  }
  .app {
    height: 100%;
    display: flex;
    align-items: stretch;
  }
}

.side {
  flex: 3;
  .left-topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: @fontSize-h1;
    font-weight: bold;
    color: @color-gray;
    border-left: none;
  }
  .profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5vh;
    border-right: solid @border-size @color-gray;
    height: 94vh;
    gap: 15px;
    .face {
      img {
        width: 80px;
        border-radius: 50%;
      }
    }
    .userName {
      font-size: @fontSize-h2;
      font-weight: bolder;
      text-shadow: 0px 0px 1px;
    }
    .emailAddress a {
      color: @color-deep-gray;
      text-decoration: none;
    }
    .functions {
      display: flex;
      gap: 20px;
    }
    .showMore {
      background-color: @color-gray;
      width: 100%;
      text-align: center;
      height: 35px;
      line-height: 35px;
      margin-top: 20px;
      width: 70%;
    }
  }
}

.notes {
  flex: 7;
  .right-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: none;
    border-right: none;
    .search {
      font-size: @fontSize-h4;
      input {
        border: none;
        font-size: @fontSize-h4;
      }
      input:focus {
        outline: 0;
      }
    }
    .switchSource {
      display: flex;
      background-color: @color-gray;
      padding: 5px;
      border-radius: 15px;
      .btn {
        font-size: @fontSize-norm;
      }
    }
  }
  .noteWapper {
    height: 94vh;
    display: flex;
    .noteList {
      flex: 2;
      display: flex;
      flex-direction: column;
      border-right: @border-size @color-gray solid;
      .bookName {
        height: 6vh;
        font-size: @fontSize-h1;
        font-weight: bold;
        border-left: @color-purple calc(3 * @border-size) solid;
        padding-left: 2vw;
        display: flex;
        align-items: center;
      }
      .noteItems {
        flex-grow: 1;
        overflow-y: auto;
        .noteItem {
          padding: 1vh 2vw;
          border-top: @color-gray @border-size solid;
          &:last-child {
            border-bottom: @color-gray @border-size solid;
          }
        }
      }
      .noteOption {
        height: 8vh;
        padding: 0 2vw;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        background-color: @color-blue;
        .btn {
          background-color: @color-bgc;
          color: @color-blue;
          border-radius: 20px;
          box-shadow: 2px 4px 12px black;
        }
      }
    }
    .noteDetail {
      height: 94vh;
      flex: 3;
      padding: 10px 2vw;
      display: flex;
      flex-direction: column;
      .dirPathWapper {
        display: flex;
        flex-direction: row-reverse;
        border-bottom: @color-gray 2 * @border-size solid;
        padding-bottom: 0.5vh;
        .dirPaths {
          display: flex;
          font-weight: bolder;
          font-size: @fontSize-h4;
          .dirPath:not(:first-child)::before {
            display: inline-block;
            content: '/';
            margin: 0 3px;
          }
          .subPath {
            color: @color-gray;
          }
        }
      }
      .noteContentWapper {
        flex-grow: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        padding-left: 1vw;
        .senderInfo {
          padding-top: 1.5vh;
          padding-bottom: 0.5vh;
          border-bottom: @color-gray @border-size dashed;
          display: flex;
          .senderFace > img {
            width: 70px;
            border-radius: 50%;
          }
          .senderUser {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding-left: 1vw;
            .sendName {
              font-size: @fontSize-h2;
              font-weight: bolder;
            }
            .sendTime {
              color: @color-deep-gray;
              font-size: @fontSize-h4;
            }
          }
        }
        .content {
          flex-grow: 1;
          overflow-y: auto;
          padding: 2vh 0;
          .sender-column {
            text-align: right;
          }

          h1 {
            font-size: 1.5em;
          }

          h2 {
            font-size: 1.3em;
          }

          p,
          ul,
          ol,
          dl,
          address {
            font-size: 1.1em;
          }

          p,
          li,
          dd,
          dt,
          address {
            line-height: 1.5;
          }
        }
      }
    }
  }
}

#IDN{
  height: 150px;
  float: left;
}